<?php $this->start('admin_menu')?>
	<?php echo $this->element('admin_menu', array('str_item' => 'agents')) ?>
<?php $this->end(); ?>
<div class="agents form">
	<h1><?php echo __('Add Agent'); ?></h1>
	<?php echo $this->Session->flash(); ?>
	<?php echo $this->Form->create('Agent'); ?>
	<?php
		#echo $this->Form->input('user_id');
	?>
	
	<table class='form-table'>
		<tr>
			<td class='left-cl-style'>Name<span class='star-rq'> * </span></td>
			<td class='right-cl-style'><?php echo $this->Form->input('name', array('label' => false)); ?></td>
		</tr>
		<tr>
			<td class='left-cl-style'>Address<span class='star-rq'> * </span></td>
			<td class='right-cl-style'><?php echo $this->Form->input('address', array('label' => false, 'class' => 'mid-input')); ?></td>
		</tr>
		<tr>
			<td class='left-cl-style'>Phone<span class='star-rq'> * </span></td>
			<td class='right-cl-style'><?php echo $this->Form->input('phone', array('label' => false)); ?></td>
		</tr>
		<tr>
			<td class='left-cl-style'>Email<span class='star-rq'> * </span></td>
			<td class='right-cl-style'><?php echo $this->Form->input('email', array('label' => false)); ?></td>
		</tr>
		<tr>
			<td class='left-cl-style'>Type<span class='star-rq'> * </span></td>
			<td class='right-cl-style'><?php echo $this->Form->input('type', array('label' => false)); ?></td>
		</tr>
		<tr>
			<td class='left-cl-style'>Status<span class='star-rq'> * </span></td>
			<td class='right-cl-style'><?php echo $this->Form->input('status', array('label' => false)); ?></td>
		</tr>
		<tr>
			<td class='left-cl-style'>Code<span class='star-rq'> * </span></td>
			<td class='right-cl-style'><?php echo $this->Form->input('code', array('label' => false)); ?></td>
		</tr>
		<tr>
			<td class='left-cl-style no-border no-background'>
				(<span class='red-star'>*</span>) Required
			</td>
			<td class='right-cl-style actions no-border no-background'><?php echo $this->Form->end(__('Submit')); ?></td>
		</tr>
	</table>
</div>
<div class='actionct'>
	<span class='btn-act'><span><?php echo $this->Html->link(__('List Agents'), array('action' => 'index'), array('class' => 'back-act')); ?></span></span>
</div>
